package shzj.orm.entity;

import java.util.ArrayList;
import java.util.List;

public class ProfessionExpertExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProfessionExpertExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPkIsNull() {
            addCriterion("PK is null");
            return (Criteria) this;
        }

        public Criteria andPkIsNotNull() {
            addCriterion("PK is not null");
            return (Criteria) this;
        }

        public Criteria andPkEqualTo(Long value) {
            addCriterion("PK =", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkNotEqualTo(Long value) {
            addCriterion("PK <>", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkGreaterThan(Long value) {
            addCriterion("PK >", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkGreaterThanOrEqualTo(Long value) {
            addCriterion("PK >=", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkLessThan(Long value) {
            addCriterion("PK <", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkLessThanOrEqualTo(Long value) {
            addCriterion("PK <=", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkIn(List<Long> values) {
            addCriterion("PK in", values, "pk");
            return (Criteria) this;
        }

        public Criteria andPkNotIn(List<Long> values) {
            addCriterion("PK not in", values, "pk");
            return (Criteria) this;
        }

        public Criteria andPkBetween(Long value1, Long value2) {
            addCriterion("PK between", value1, value2, "pk");
            return (Criteria) this;
        }

        public Criteria andPkNotBetween(Long value1, Long value2) {
            addCriterion("PK not between", value1, value2, "pk");
            return (Criteria) this;
        }

        public Criteria andExpertFkIsNull() {
            addCriterion("EXPERT_FK is null");
            return (Criteria) this;
        }

        public Criteria andExpertFkIsNotNull() {
            addCriterion("EXPERT_FK is not null");
            return (Criteria) this;
        }

        public Criteria andExpertFkEqualTo(Long value) {
            addCriterion("EXPERT_FK =", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkNotEqualTo(Long value) {
            addCriterion("EXPERT_FK <>", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkGreaterThan(Long value) {
            addCriterion("EXPERT_FK >", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkGreaterThanOrEqualTo(Long value) {
            addCriterion("EXPERT_FK >=", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkLessThan(Long value) {
            addCriterion("EXPERT_FK <", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkLessThanOrEqualTo(Long value) {
            addCriterion("EXPERT_FK <=", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkIn(List<Long> values) {
            addCriterion("EXPERT_FK in", values, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkNotIn(List<Long> values) {
            addCriterion("EXPERT_FK not in", values, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkBetween(Long value1, Long value2) {
            addCriterion("EXPERT_FK between", value1, value2, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkNotBetween(Long value1, Long value2) {
            addCriterion("EXPERT_FK not between", value1, value2, "expertFk");
            return (Criteria) this;
        }

        public Criteria andClassificationFkIsNull() {
            addCriterion("CLASSIFICATION_FK is null");
            return (Criteria) this;
        }

        public Criteria andClassificationFkIsNotNull() {
            addCriterion("CLASSIFICATION_FK is not null");
            return (Criteria) this;
        }

        public Criteria andClassificationFkEqualTo(Long value) {
            addCriterion("CLASSIFICATION_FK =", value, "classificationFk");
            return (Criteria) this;
        }

        public Criteria andClassificationFkNotEqualTo(Long value) {
            addCriterion("CLASSIFICATION_FK <>", value, "classificationFk");
            return (Criteria) this;
        }

        public Criteria andClassificationFkGreaterThan(Long value) {
            addCriterion("CLASSIFICATION_FK >", value, "classificationFk");
            return (Criteria) this;
        }

        public Criteria andClassificationFkGreaterThanOrEqualTo(Long value) {
            addCriterion("CLASSIFICATION_FK >=", value, "classificationFk");
            return (Criteria) this;
        }

        public Criteria andClassificationFkLessThan(Long value) {
            addCriterion("CLASSIFICATION_FK <", value, "classificationFk");
            return (Criteria) this;
        }

        public Criteria andClassificationFkLessThanOrEqualTo(Long value) {
            addCriterion("CLASSIFICATION_FK <=", value, "classificationFk");
            return (Criteria) this;
        }

        public Criteria andClassificationFkIn(List<Long> values) {
            addCriterion("CLASSIFICATION_FK in", values, "classificationFk");
            return (Criteria) this;
        }

        public Criteria andClassificationFkNotIn(List<Long> values) {
            addCriterion("CLASSIFICATION_FK not in", values, "classificationFk");
            return (Criteria) this;
        }

        public Criteria andClassificationFkBetween(Long value1, Long value2) {
            addCriterion("CLASSIFICATION_FK between", value1, value2, "classificationFk");
            return (Criteria) this;
        }

        public Criteria andClassificationFkNotBetween(Long value1, Long value2) {
            addCriterion("CLASSIFICATION_FK not between", value1, value2, "classificationFk");
            return (Criteria) this;
        }

        public Criteria andExpertLevelIsNull() {
            addCriterion("EXPERT_LEVEL is null");
            return (Criteria) this;
        }

        public Criteria andExpertLevelIsNotNull() {
            addCriterion("EXPERT_LEVEL is not null");
            return (Criteria) this;
        }

        public Criteria andExpertLevelEqualTo(String value) {
            addCriterion("EXPERT_LEVEL =", value, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelNotEqualTo(String value) {
            addCriterion("EXPERT_LEVEL <>", value, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelGreaterThan(String value) {
            addCriterion("EXPERT_LEVEL >", value, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelGreaterThanOrEqualTo(String value) {
            addCriterion("EXPERT_LEVEL >=", value, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelLessThan(String value) {
            addCriterion("EXPERT_LEVEL <", value, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelLessThanOrEqualTo(String value) {
            addCriterion("EXPERT_LEVEL <=", value, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelLike(String value) {
            addCriterion("EXPERT_LEVEL like", value, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelNotLike(String value) {
            addCriterion("EXPERT_LEVEL not like", value, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelIn(List<String> values) {
            addCriterion("EXPERT_LEVEL in", values, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelNotIn(List<String> values) {
            addCriterion("EXPERT_LEVEL not in", values, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelBetween(String value1, String value2) {
            addCriterion("EXPERT_LEVEL between", value1, value2, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExpertLevelNotBetween(String value1, String value2) {
            addCriterion("EXPERT_LEVEL not between", value1, value2, "expertLevel");
            return (Criteria) this;
        }

        public Criteria andExtend1IsNull() {
            addCriterion("EXTEND1 is null");
            return (Criteria) this;
        }

        public Criteria andExtend1IsNotNull() {
            addCriterion("EXTEND1 is not null");
            return (Criteria) this;
        }

        public Criteria andExtend1EqualTo(String value) {
            addCriterion("EXTEND1 =", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1NotEqualTo(String value) {
            addCriterion("EXTEND1 <>", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1GreaterThan(String value) {
            addCriterion("EXTEND1 >", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1GreaterThanOrEqualTo(String value) {
            addCriterion("EXTEND1 >=", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1LessThan(String value) {
            addCriterion("EXTEND1 <", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1LessThanOrEqualTo(String value) {
            addCriterion("EXTEND1 <=", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1Like(String value) {
            addCriterion("EXTEND1 like", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1NotLike(String value) {
            addCriterion("EXTEND1 not like", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1In(List<String> values) {
            addCriterion("EXTEND1 in", values, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1NotIn(List<String> values) {
            addCriterion("EXTEND1 not in", values, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1Between(String value1, String value2) {
            addCriterion("EXTEND1 between", value1, value2, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1NotBetween(String value1, String value2) {
            addCriterion("EXTEND1 not between", value1, value2, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend2IsNull() {
            addCriterion("EXTEND2 is null");
            return (Criteria) this;
        }

        public Criteria andExtend2IsNotNull() {
            addCriterion("EXTEND2 is not null");
            return (Criteria) this;
        }

        public Criteria andExtend2EqualTo(String value) {
            addCriterion("EXTEND2 =", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2NotEqualTo(String value) {
            addCriterion("EXTEND2 <>", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2GreaterThan(String value) {
            addCriterion("EXTEND2 >", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2GreaterThanOrEqualTo(String value) {
            addCriterion("EXTEND2 >=", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2LessThan(String value) {
            addCriterion("EXTEND2 <", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2LessThanOrEqualTo(String value) {
            addCriterion("EXTEND2 <=", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2Like(String value) {
            addCriterion("EXTEND2 like", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2NotLike(String value) {
            addCriterion("EXTEND2 not like", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2In(List<String> values) {
            addCriterion("EXTEND2 in", values, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2NotIn(List<String> values) {
            addCriterion("EXTEND2 not in", values, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2Between(String value1, String value2) {
            addCriterion("EXTEND2 between", value1, value2, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2NotBetween(String value1, String value2) {
            addCriterion("EXTEND2 not between", value1, value2, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend3IsNull() {
            addCriterion("EXTEND3 is null");
            return (Criteria) this;
        }

        public Criteria andExtend3IsNotNull() {
            addCriterion("EXTEND3 is not null");
            return (Criteria) this;
        }

        public Criteria andExtend3EqualTo(String value) {
            addCriterion("EXTEND3 =", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3NotEqualTo(String value) {
            addCriterion("EXTEND3 <>", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3GreaterThan(String value) {
            addCriterion("EXTEND3 >", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3GreaterThanOrEqualTo(String value) {
            addCriterion("EXTEND3 >=", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3LessThan(String value) {
            addCriterion("EXTEND3 <", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3LessThanOrEqualTo(String value) {
            addCriterion("EXTEND3 <=", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3Like(String value) {
            addCriterion("EXTEND3 like", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3NotLike(String value) {
            addCriterion("EXTEND3 not like", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3In(List<String> values) {
            addCriterion("EXTEND3 in", values, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3NotIn(List<String> values) {
            addCriterion("EXTEND3 not in", values, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3Between(String value1, String value2) {
            addCriterion("EXTEND3 between", value1, value2, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3NotBetween(String value1, String value2) {
            addCriterion("EXTEND3 not between", value1, value2, "extend3");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}